/*
 * @Author: yfp
 * @Date: 2024-04-01 09:50:47
 * @LastEditors: yehongbo 1394168736@qq.com
 * @LastEditTime: 2024-07-16 17:56:09
 * @Description: 
 */
import Request from "@/utils/request";
const request = new Request({});

export default {
  /**
   * 告警详情
   * @param data
   * @returns
   */
  getHisRecordList(data) {

    return request.post(`/api/info`, data, {
      headers: { "Content-Type": "application/json; chartset=utf-8" },
    });
  },
  getDataGrp(data) {
    return request.post(`/api/pop`, JSON.stringify(data), {
      // headers: { "Content-Type": "application/json" },
      headers: { "Content-Type": "application/json; chartset=utf-8" },
    });
  },
  getSelectDic(data) {
    return request.post(`/api/search`, JSON.stringify(data), {
      // headers: { "Content-Type": "application/json" },
      headers: { "Content-Type": "application/json; chartset=utf-8" },
    });
  },
  getShowInfo(data) {
    return request.post(`/api/show_info`, JSON.stringify(data), {
      headers: { "Content-Type": "application/json" }
    });
  },
};
